package com.iw.adoms.entity;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.iw.core.orm.hibernate.BaseEntity;

@Entity
@Table(name = "customer_interview")
public class CustomerInterview extends BaseEntity {

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "customer_id")
	private Department customer; // 受访部门
	
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "department_id")
	private Department department; // 采访部门
	
	private String memo; // 备注

	public Department getCustomer() {
		return customer;
	}

	public void setCustomer(Department customer) {
		this.customer = customer;
	}

	public Department getDepartment() {
		return department;
	}

	public void setDepartment(Department department) {
		this.department = department;
	}

	public String getMemo() {
		return memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}

}